package com.cgtong.android.db;

import com.cgtong.android.bean.UserInfoBean;

import org.litepal.crud.DataSupport;

/**
 * Created by Sky.Bing on 2017/10/23.
 */

public class UserAccount extends DataSupport {


    private int id;
    private int userId; //用户ID
    private String nickName; //昵称
    private int sex;  //性别
    private String name; //姓名
    private int avatarId; //用户头像
    private String idc;     //身份证
    private String phone; //手机号
    private String address; //地址
    private String password; //密码
    private double money; //钱
    private String score; //积分
    private int status; //状态
    private int isPush; //是否推送
    private String created_at; //创建时间
    private String updated_at; //修改时间
    private double exp; //经验值
    private String lev; //等级
    private int forbidStatus; //用户禁用状态

    private String token; //用户登录token
    private int loginStatus; //用户app登录状态
    private String loginTime; //用户app登录时间

    private int redEnvelopes;//红包开关：0显示1隐藏

    public UserAccount() {
    }

    public UserAccount(UserInfoBean.UserInfoBeanObj userInfoBean) {
        this.id = userInfoBean.getId();
        this.userId = userInfoBean.getId();
        this.nickName = userInfoBean.getNickName();
        this.sex = userInfoBean.getSex();
        this.name = userInfoBean.getName();
        this.avatarId = userInfoBean.getAvatarId();
        this.idc = userInfoBean.getIdc();
        this.phone = userInfoBean.getPhone();
        this.address = userInfoBean.getAddress();
        this.password = userInfoBean.getPassword();
        this.money = userInfoBean.getMoney();
        this.score = userInfoBean.getScore();
        this.status = userInfoBean.getStatus();
        this.isPush = userInfoBean.getIsPush();
        this.created_at = userInfoBean.getCreated_at();
        this.updated_at = userInfoBean.getUpdated_at();
        this.exp = userInfoBean.getExp();
        this.lev = userInfoBean.getLev();
        this.forbidStatus = userInfoBean.getForbidStatus();
        this.redEnvelopes = userInfoBean.getRedEnvelopes();
    }

    public int getRedEnvelopes() {
        return redEnvelopes;
    }

    public void setRedEnvelopes(int redEnvelopes) {
        this.redEnvelopes = redEnvelopes;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAvatarId() {
        return avatarId;
    }

    public void setAvatarId(int avatarId) {
        this.avatarId = avatarId;
    }

    public String getIdc() {
        return idc;
    }

    public void setIdc(String idc) {
        this.idc = idc;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getIsPush() {
        return isPush;
    }

    public void setIsPush(int isPush) {
        this.isPush = isPush;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public double getExp() {
        return exp;
    }

    public void setExp(double exp) {
        this.exp = exp;
    }

    public String getLev() {
        return lev;
    }

    public void setLev(String lev) {
        this.lev = lev;
    }

    public int getForbidStatus() {
        return forbidStatus;
    }

    public void setForbidStatus(int forbidStatus) {
        this.forbidStatus = forbidStatus;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(int loginStatus) {
        this.loginStatus = loginStatus;
    }

    public String getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(String loginTime) {
        this.loginTime = loginTime;
    }
}